Remove unused `ToUrl` impls.
authorCorey Farwell <coreyf@rwell.org>
Thu, 5 May 2016 01:46:36 +0000 (21:46 -0400)
committerCorey Farwell <coreyf@rwell.org>
Thu, 5 May 2016 01:46:36 +0000 (21:46 -0400)
src/cargo/util/to_url.rs

index 59159cc1d91fa05b650e642ffc2f953954097378..c8685708287dc616c8c182bf617587037dd5cdb6 100644 (file)
@@ -5,18 +5,6 @@ pub trait ToUrl {
     fn to_url(self) -> Result<Url, String>;
 }
 
-impl ToUrl for Url {
-    fn to_url(self) -> Result<Url, String> {
-        Ok(self)
-    }
-}
-
-impl<'a> ToUrl for &'a Url {
-    fn to_url(self) -> Result<Url, String> {
-        Ok(self.clone())
-    }
-}
-
 impl<'a> ToUrl for &'a str {
     fn to_url(self) -> Result<Url, String> {
         Url::parse(self).map_err(|s| {